<?php
	/**
	 * @author PHIREAK
	 * 
	 */
	class Configuration {
		private static $db = "config.xml" ;
		private static $doc = null ; 
		private static $xpath = null ; 
		
		public function __construct(){}
		public function __Configuration(){}
		
		/**
		 * @param string $node
		 * @return content of node
		 */
		public static function getNodeValue( $node="" ){
			self::$doc = new DOMDocument('1.0', 'utf-8');
			self::$doc->load(APP_CONFIG . self::$db);
			self::$xpath = new DOMXPath(self::$doc);
			if($node!=""){
				$nodes = self::$xpath->query("//" . $node);
				foreach ( $nodes AS $node ){
					return $node->nodeValue;
				}
			}
		}
	}